﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace emlak
{
    public partial class frmPersonelKayit : Form
    {
        public frmPersonelKayit()
        {
            InitializeComponent();
        }

        snfPersonelIslemleri personelkayit = new snfPersonelIslemleri();

        public void PersonelAtama()
        {

            personelkayit.Adisoyadi = tbAdSoyad.Text ;
            personelkayit.Tckimlikno = tbTCNo.Text;
            personelkayit.Sgkno = tbSGKNo.Text;
            personelkayit.Isyeritel = tbIsyeriTel.Text;
            personelkayit.Ceptel = tbCepTel.Text;
            personelkayit.Email = tbEmail.Text;
            personelkayit.Adresi = tbAdres.Text;
            // düzeltilmesi gerekiyor.
            personelkayit.Yetkileri = checkedListBox1.Text;
        
        
        }

        private void btnKaydet_Click(object sender, EventArgs e)
        {
            PersonelAtama();
        }

        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            PersonelAtama();
        }

        private void btnCik_Click(object sender, EventArgs e)
        {
            if ((MessageBox.Show("Programdan Çıkıyorsunuz...", "Emlakçı", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK))
                Close();
        }
    }
}
